package de.jmda.util.gui.swing;

import java.io.File;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlRootElement;

import de.jmda.gui.swing.mvc.ModelBase;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class JPanelFavouritesModel
    extends ModelBase
{
	@XmlElementWrapper
	@XmlElements
	(
			@XmlElement(name="favourite")
	)
	private List<File> favourites;
	
	/**
	 * required by JAXB
	 */
  private JPanelFavouritesModel()
	{
  	super();
//	  this(new LinkedList<File>());
	}

	public JPanelFavouritesModel(List<File> favourites)
  {
		this();
	  this.favourites = favourites;
  }

	public List<File> getFavourites()
  {
  	return favourites;
  }
}